﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="IRs_StatusSummaryUserControl.ascx.cs"
    Inherits="TRIG_MOD_STATUSSUMMARY.IRs_StatusSummary.IRs_StatusSummaryUserControl" %>
<link rel="Stylesheet" type="text/Css" href="/_layouts/TRIG_MOD_STATUSSUMMARY/tce.css" />
<%--<script language="javascript" type="text/javascript">

    function validate() {
        debugger;
    var result=true;
        var date = document.getElementById('<%=stDT.ClientID %>');
        var comparedate = document.getElementById('<%= endDT.ClientID%>');
        if (date == comparedate) {
            result = true;
        }
        else {
            result = false;
        }
        return result;
    }

</script>--%>
<asp:UpdatePanel ID="uptStSumError" runat="server">
    <ContentTemplate>
        <table>
            <tr>
                <td>
                    <asp:Label ID="errorMessage" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>

<asp:UpdatePanel ID="x" runat="server">
    <ContentTemplate>
        <asp:RadioButtonList ID="rdDates" runat="server" RepeatDirection="Horizontal" OnSelectedIndexChanged="rdDates_SelectedIndexChanged2"
            AutoPostBack="true">
            <asp:ListItem Value="1">Between Dates</asp:ListItem>
            <asp:ListItem Selected="true" Value="0">As of Today</asp:ListItem>
        </asp:RadioButtonList>
    </ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel3" runat="server">
    <ContentTemplate>
        <table>
            <tr>
                <td>
                    <SharePoint:DateTimeControl runat="server" ID="stDT" DateOnly="true"  />
                   
                </td>
                <td>
                    <SharePoint:DateTimeControl runat="server" ID="endDT" DateOnly="true"  Visible="false" />
                    <%--<asp:CompareValidator ID="cv" runat="server" Display="Dynamic" ForeColor="red" Type="Date"
                        Operator="LessThan" ControlToCompare="stDT$stDTDate" ControlToValidate="endDT$endDTDate">*</asp:CompareValidator>--%>
                </td>
                <asp:CompareValidator ID="valDate" runat="server" ForeColor="Red" ControlToValidate="stDT$stDTDate" ControlToCompare="endDT$endDTDate"
                        Type="Date" Operator="LessThanEqual" ErrorMessage="Start date should be less than end date"></asp:CompareValidator>

            </tr>
        </table>
    </ContentTemplate>
    <Triggers>
        <asp:PostBackTrigger ControlID="rdDates" />
    </Triggers>
</asp:UpdatePanel>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <table>
            <tr>
                <td>
                    <asp:Button ID="btnProcessIR" runat="server" Text="Get Summary" 
                        onclick="btnProcessIR_Click"  />
                </td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>

<asp:UpdatePanel ID="uptStSumGrid" runat="server">
    <ContentTemplate>
        <asp:GridView ID="stSumGrid" runat="server" AutoGenerateColumns="true" AllowPaging="True"
            AlternatingRowStyle-CssClass="alt" CommandRowStyle-CssClass="ftr" CssClass="grid"
            EditRowStyle-CssClass="EditRowStyle" EnableModelValidation="True" FieldHeaderStyle-CssClass="hdr"
            GridLines="None" PagerStyle-CssClass="pgr" PageSize="5" RowStyle-CssClass="mGridRowStyle"
            SelectedRowStyle-CssClass="SelectedRowStyle">
        </asp:GridView>
    </ContentTemplate>
</asp:UpdatePanel>
